package org.example.service.impl;

import org.apache.dubbo.config.annotation.Service;
import org.example.pojo.User;
import org.example.service.UserService;


/**
 * @author: 船长
 * @create: 2024-09-03 22:41
 **/

//
//@Service(timeout = 3000,retries = 3)// 超时设置3秒，重试3次
//@Service(version="v1.0",group = "userGroup")// 设置版本
@Service
public class UserServiceImpl implements UserService {
    public String sayHello() {
        return "hello dubbo!";
    }

    public User findUserById(Integer id) {
        User user = new User(1,"张三","123456");
        return user;
    }
}
